package io.lckgroup.modules.lck.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.lckgroup.common.utils.PageUtils;
import io.lckgroup.modules.lck.entity.ShopFoodEntity;
import io.lckgroup.modules.lck.entity.appvo.ShopFoodEntityVo;
import io.lckgroup.modules.lck.form.ShopFoodEntityForm;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 菜品表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:39
 */
public interface ShopFoodService extends IService<ShopFoodEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //通过ShopFoodEntity参数来分页查询
    PageUtils queryPageByEntity(Map<String, Object> params, ShopFoodEntity shopFoodEntity);

    //自定义新增和修改菜品信息的方法
    boolean myAddOrUpdate(ShopFoodEntityForm entity);

    //自定义菜品信息的方法
    boolean myDeleteShopFoodById(Serializable id);

    //根据商家id获取商家菜品信息
    List getFoodList(Integer merchantId);

    //分页查询所有菜品
    PageUtils queryByPage(Map<String, Object> params);

    //查询所有菜品（菜品，菜品类型，菜品规格）
    List findFoodList(Long ShopMerchantInId);

    IPage<ShopFoodEntityVo> queryPageByDefine(Map<String, Object> params);
}

